package uit.com.project.iCampus.dao;

import java.util.List;

import uit.com.project.iCampus.model.UserOnline;

public interface UserOnlineDAO extends GenericDAO<UserOnline, Long>{
	
	/**
	 * Get All User online.s
	 * @return
	 */
	public List<UserOnline> getAllUserOnlines();
	
	/**
	 * Check User is online ?
	 * if not Online return false
	 * else if online return true
	 * @param username
	 * @return
	 */
	public boolean isOnline (String username);
	
	/**
	 * Delete UserOnline
	 * @param username
	 */
	public boolean deleteUserOnline(String username);
}
